how to replace last character of string in c#

68

how to replace last character of string in c# -

string Name = "Teste,"
string ReturnName = "";
ReturnName = Name.Remove(Name.Length - 1);

Comments

Submit
0 Comments